﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FB.DataAccess;
using FB.Utilities;

namespace FB.Bussiness
{
    public class TagBO
    {
        public IEnumerable<Tag> GetAllTag()
        {
            TagDAO _dao = new TagDAO();
            return _dao.GetAllTag();
        }
        public Tag GetTagById(Guid id)
        {
            TagDAO _dao = new TagDAO();
            return _dao.GetTagByID(id);
        }
        public bool UpdateTag(Tag inTag)
        {
            TagDAO _dao = new TagDAO();
            return _dao.UpdateTag(inTag);
        }
        public ReturnValue<bool> InsertTag(Tag inTag)
        {
            TagDAO _dao = new TagDAO();
            return _dao.InsertTag(inTag);
        }

        public ReturnValue<bool> DelTag(Guid id)
        {
            TagDAO _dao = new TagDAO();
            return _dao.DelTag(id);
        }
    }
}
